<%@ page language="java"
	import="com.byxy.model.Department,com.byxy.service.DepartmentServiceImpl"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>查看部门信息</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="Styles/bootstrap.min.css" />
</head>

<body>
	<%
		int id = Integer.parseInt(request.getParameter("id"));
		DepartmentServiceImpl dePMSer = new DepartmentServiceImpl();
		Department dePM = dePMSer.findById(id);
	%>
	<form onSubmit="return chkads()" name="if_selectid"
		action="./DepartmentUpdaetServlet" method="post">
		<table class="table table-striped table-bordered table-condensed list">

			<tr>
				<td>编号：</td>
				<td>名称：</td>
			</tr>
			<tr class="demo">
				<td><div><%=dePM.getId()%></div></td>
				<td><div>
						<div><%=dePM.getName()%></div>
					</div>
					</div></td>
			</tr>
		</table>
		<td colspan="6"><a href="#" type=”button” name=”submit”
			onclick="javascript:history.back(-1);">返回上一页</a></td>
	</form>
</body>
</html>